package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.po.v1.RDeviceContacts;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@Mapper
@Repository
public interface RDeviceContactsMapper extends K2Mapper<RDeviceContacts> {

    @Delete(" delete from r_device_contacts where device_id = #{deviceId}")
    int deleteByDeviceId(@Param("deviceId") Long deviceId);
}
